const clearObj = (obj) => {
  for (let key in obj) {
    if (Array.prototype.isPrototypeOf(obj[key])) {
      obj[key] = []
    } else {
      obj[key] = ''
    }
  }
}

export default clearObj
